﻿using System;
using System.Collections.Generic;
using System.Text;
using AppToolKit.Core.Context.Spring;
using AppToolKit.Core.Context.Spring.AutoConstruction;
using PMSBusiness.Contract.Background;

namespace PMSBusiness.Service.Background
{
    [ServiceImpl(typeof(IWorkTaskServiceFacade))]
    [AutoWiring]
    public class WorkTaskServiceFacade:IWorkTaskServiceFacade
    {
        [AutoWiring]
        public WorkTaskExecutor BackgroundTasks { get; set; }

        public void Execute(string workSet)
        {
            BackgroundTasks.Excute(workSet);
        }
    }
}
